# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'Info_1.ui'
#
# Created: Tue Jun 17 15:00:20 2014
#      by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

def ShowObjectInfo(iface):
    dlg = ObjectInfoDialog(iface)
    dlg.exec_()
    return

def ToUTF(s1, s2):
    return QtGui.QApplication.translate(s1, s2, None, QtGui.QApplication.UnicodeUTF8)

class ObjectInfoDialog(QtGui.QDialog):
    iface = None

    def __init__(self, iface):
        QtGui.QDialog.__init__(self)

        self.iface = iface
        self.resize(614, 488)
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self)
        self.splitter = QtGui.QSplitter(self)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.widget = QtGui.QWidget(self.splitter)
        self.verticalLayout = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout.setMargin(0)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.AddFile = QtGui.QPushButton(self.widget)
        self.horizontalLayout_2.addWidget(self.AddFile)
        self.AddFolder = QtGui.QPushButton(self.widget)
        self.horizontalLayout_2.addWidget(self.AddFolder)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.lineEdit = QtGui.QLineEdit(self.widget)
        self.horizontalLayout.addWidget(self.lineEdit)
        self.ClearText = QtGui.QPushButton(self.widget)
        self.horizontalLayout.addWidget(self.ClearText)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.ObjectList = QtGui.QTableWidget(self.widget)
        self.ObjectList.setColumnCount(3)
        self.ObjectList.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.ObjectList.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.ObjectList.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.ObjectList.setHorizontalHeaderItem(2, item)
        self.verticalLayout.addWidget(self.ObjectList)
        self.ObjectInfo = QtGui.QPlainTextEdit(self.splitter)
        self.horizontalLayout_3.addWidget(self.splitter)

        self.retranslateUi()
        self.SetSignals()
        QtCore.QMetaObject.connectSlotsByName(self)
        self.setTabOrder(self.AddFile, self.AddFolder)
        self.setTabOrder(self.AddFolder, self.lineEdit)
        self.setTabOrder(self.lineEdit, self.ClearText)
        self.setTabOrder(self.ClearText, self.ObjectList)
        self.setTabOrder(self.ObjectList, self.ObjectInfo)
        return

    def retranslateUi(self):
        self.setWindowTitle(QtGui.QApplication.translate("Object Info Dialog", "Objects Information"))
        self.AddFile.setText(QtGui.QApplication.translate("Object Info Dialog", "Open file"))
        self.AddFolder.setText(QtGui.QApplication.translate("Object Info Dialog", "Open Folder"))
        self.ClearText.setText(QtGui.QApplication.translate("Object Info Dialog", "X"))
        self.ObjectList.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("Object Info Dialog", "No"))
        self.ObjectList.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("Object Info Dialog", "Info"))
        self.ObjectList.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("Object Info Dialog", "File"))
        return

    def SetSignals(self):
        QtCore.QObject.connect(self.AddFile,   QtCore.SIGNAL("pressed()"), self.LoadFile)
        QtCore.QObject.connect(self.AddFolder, QtCore.SIGNAL("pressed()"), self.LoadFolder)
        QtCore.QObject.connect(self.ClearText, QtCore.SIGNAL("pressed()"), self.Clear)
        return

    def LoadFile(self):
        QtGui.QMessageBox.information(self.iface.mainWindow(), QtGui.QApplication.translate("Module name", "Landex"), QtGui.QApplication.translate("Object Info Dialog", "Not implemented yet!"))
        return

    def LoadFolder(self):
        QtGui.QMessageBox.information(self.iface.mainWindow(), QtGui.QApplication.translate("Module name", "Landex"), QtGui.QApplication.translate("Object Info Dialog", "Not implemented yet!"))
        return

    def Clear(self):
        QtGui.QMessageBox.information(self.iface.mainWindow(), QtGui.QApplication.translate("Module name", "Landex"), QtGui.QApplication.translate("Object Info Dialog", "Not implemented yet!"))
        return

